package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_resp")
public class OrderResp extends Model<OrderResp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resp_id", type = IdType.ASSIGN_ID)
    private String respId;

    @TableField("pay_code")
    private String payCode;

    @TableField("time_start")
    private LocalDateTime timeStart;

    @TableField("order_id")
    private String orderId;

    @TableField("err_msg")
    private String errMsg;

    public void freeData() {
        this.respId = null;
        this.payCode = null;
        this.timeStart = null;
        this.orderId = null;
        this.errMsg = null;
    }

}
